package pyip.lib.javalearn.algorithm;

public class LruCache extends Cache {

    public LruCache(int maxCapacity) {
        super(true, maxCapacity);
    }

    public static void main(String[] args) {
        LruCache cache = new LruCache(10);
        for (int i = 0; i < 20; i++) {
            cache.get(4);
            cache.add(i, i);
        }

        System.out.println(cache.getAll());
    }
}